#include <gtkmm.h>
#include "mainwindow.h"

int main(int argc, char* argv[])
{
    try
    {
        Gtk::Main gui(argc, argv);
        std::string df;
        if (argc>1) df=argv[1];
        MainWindow m(df);
        gui.run(m);
        return 0;
    }
    catch (std::exception const& ex)
    {
        std::cerr << "Error: " << ex.what() << std::endl;
        return 1;
    }
}
